package com.xh.personsystem.maper;

import com.xh.personsystem.entity.PersonInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
/**
 * @author Admins
 */
@Mapper
public interface PersoninfoMapper {
    /**
     * 数据信息
     * @return
     */
    @Select("select * from mucd.personinfo")
    List<PersonInfo> findAll();

    /**
     * 数据总条数
     * @return
     */
    Integer dataCount();

    /**
     * 按照ID删除
     * @param id
     * @return
     */
    Integer deleteById(Integer id);
}